﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AntMovement.Core.Entity
{
    [Serializable]
    public class Alarm
    {
        /// <summary>
        /// 高低电平报警
        /// </summary>
        public bool AlarmStatus { get; set; }
        /// <summary>
        /// 报警信息
        /// </summary>
        public string AlarmInfo { get; set; }
        /// <summary>
        /// 上升沿报警上次报警状态
        /// </summary>
        public bool DiscreteCacheValue { get; set; } = false;

        /// <summary>
        /// 下降沿报警上次报警状态
        /// </summary>
        public bool DiscreteLowCacheValue { get; set; } = true;
        /// <summary>
        /// 是否是急停
        /// </summary>
        public bool IsEMG { get; set; } = false;
        /// <summary>
        /// 报警等级
        /// </summary>
        public int AlarmLV { get; set; }
    }
}
